package files_handler;

import java.util.List;
import dropbox.common.Command;



/**
 * holds the info about the update that 
 * has occurred in the server and
 * users that affect by it
 * @author Yoav
 *
 */
public class UpdateInfo {
	
	//holds all users who affect by update
	private List<String> users=null;
	//holds the change command 
	private Command change=null;
	
	/**
	 * constructor
	 * @param users list of users who are affected by update
	 * @param change the change that occurred 
	 */
	public UpdateInfo(List<String> users,Command change){
		this.users=users;
		this.change=change;
	}
	/**
	 * get change command that happened
	 * @return change command that happend
	 */
	public Command getChange() {
		return change;
	}
	/**
	 * get users who are affected by the change
	 * @return users who are affected by the change 
	 */
	public List<String> getUsers() {
		return users;
	}
	
}
